import { post ,get} from '../../http/axios'

export default {
    namespaced: true,
    state: {
        dataList:{}
    },
    mutations: {
        set_dataList(state, dataList) {
            state.dataList = dataList
        }
    },
    actions: {
        async saveOrupdata(context, params) {
            let res = await post('/epidemic/saveOrUpdate', params);
            return res;
        },

        async page_query(context, params) {
            let res = await get('/epidemic/pageQuery', params);
            context.commit('set_dataList', res.data)
        }
    }
}